﻿using Domain;
using Domain.Entity;
using Domain.Repository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application.AppService.MCAppService
{
	public class MCAppService : IMCAppService
	{
		private readonly IMCRepository mCRepository;

		public MCAppService(IMCRepository mCRepository)
        {
			this.mCRepository = mCRepository;
		}

		public Task<bool> AddMc(MC mC)
		{
			return mCRepository.AddMc(mC);
		}

		public MCFenYe DataMC(string firstKindName, string secondKindName, string thirdKindName, DateTime startDate, DateTime endDate, int page, int pageSize)
		{
			return mCRepository.DataMC(firstKindName, secondKindName, thirdKindName, startDate, endDate, page, pageSize);
		}

		public MCFenYe GetMcByCheckReason(string checkReason, int page, int pageSize)
		{
			return mCRepository.GetMcByCheckReason(checkReason,page,pageSize);
		}

		public MCFenYe SelectMC(string checkReason, string newfirstKindName, string newsecondKindName, string newthirdKindName, string newmajorKindName, string newmajorName, DateTime startDate, DateTime endDate, int page, int pageSize)
		{
			return mCRepository.SelectMC(checkReason, newfirstKindName, newsecondKindName, newthirdKindName, newmajorKindName, newmajorName, startDate, endDate, page, pageSize);
		}

		public Task<bool> UpdateMC(MC mc)
		{
			return mCRepository.UpdateMC(mc);
		}

		public Task<bool> UpdateReviewMC(MC mc)
		{
			return mCRepository.UpdateReviewMC(mc);
		}
	}
}
